package com.zidian.teacher.bean;

/**
 * Created by GongCheng on 2016/10/19 0019.
 * 展示问卷详情实体类
 */

public class QuestionDetailListBean implements Comparable<QuestionDetailListBean> {
    private String itemName;
    private int optionNumber;
    private boolean isChild = false;
    //用于排序的属性
    private Integer order;

    public QuestionDetailListBean() {
    }

    public QuestionDetailListBean(String itemName, int optionNumber, boolean isChild) {
        this.itemName = itemName;
        this.optionNumber = optionNumber;
        this.isChild = isChild;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public int getOptionNumber() {
        return optionNumber;
    }

    public void setOptionNumber(int optionNumber) {
        this.optionNumber = optionNumber;
    }

    public boolean isChild() {
        return isChild;
    }

    public void setChild(boolean child) {
        isChild = child;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    @Override
    public int compareTo(QuestionDetailListBean another) {
        return this.getOrder().compareTo(another.getOrder());
    }
}
